package operation;

import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:DELL
 * Date:2024-10-22
 * Time:14:24
 */
public class Exitopteration implements IOpteration {
    public void work(BookList bookList){
        System.out.println("退出系统！");
        int currentSize= bookList.getUsedsize();
        for (int i = 0; i < currentSize; i++) {
            bookList.setbooks(i,null);
        }
        bookList.setUsedsize(0);
        System.exit(0);
    }
}
